package com.zy.swagger.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * description 修改密码DTO
 *
 * @author ZY
 * @date 2021年04月15日 09:49
 **/
@ApiModel("修改密码DTO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ModifyPwdDTO {

    @ApiModelProperty(value = "原密码", required = true)
    @NotBlank(message = "原密码不能为空")
    private String oldPwd;

    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码不能为空")
    private String newPwd;
}
